/**
 * 主线任务系统相关API
 */
import { post } from './request'

// 获取章节剧情文案
export function getChapterPlot(chapterId) {
  return post('/mainquest/chapter_plot', {
    chapter_id: chapterId
  })
}

// 获取关卡敌人阵容
export function getLevelEnemies(level) {
  return post('/mainquest/level_enemies', {
    level: level
  })
}

// 获取BOSS信息
export function getBossInfo(level) {
  return post('/mainquest/boss_info', {
    level: level
  })
}

// 开始主线战斗
export function startMainBattle(level, formation) {
  return post('/mainquest/start_battle', {
    level: level,
    formation: formation
  })
}

export default {
  getChapterPlot,
  getLevelEnemies,
  getBossInfo,
  startMainBattle
}